package com.neudu.glsb.service;

import com.neudu.glsb.pojo.EmployeeLeave;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface EmployeeLeaveService extends IService<EmployeeLeave> {
    // 根据 ID 查询请假申请详情并获取员工姓名
    EmployeeLeave getLeaveByIdWithEmployeeName(Integer id);

    // 根据审批状态和员工姓名进行查询
    List<EmployeeLeave> getLeavesByStatusAndEmployeeName(String status, String employeeName);

    List<EmployeeLeave> searchByName(String employeeName);


}